<!--
 * @Author: 陈俊升 761723995@qq.com
 * @Date: 2023-10-10 16:54:45
 * @LastEditors: 陈俊升 761723995@qq.com
 * @LastEditTime: 2024-03-15 09:52:47
 * @FilePath: /hr_new_vue3/src/components/IconFont/index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!-- iconfont引入的字体 -->
<template>
  <icon-font :type="type" :size="size" />
</template>

<script lang="ts" setup>
import { Icon } from '@arco-design/web-vue';

const props = withDefaults(
  //参数说明
  defineProps<{
    size: number | string; //icon的size
    type: string; // icon的类型
  }>(),
  {
    size: 14 // 默认14px
  }
);

const IconFont = Icon.addFromIconFontCn({
  // src: 'https://at.alicdn.com/t/c/font_3909750_os30zsw030f.js'
  src: 'https://at.alicdn.com/t/c/font_3910314_zr13ttgxyfm.js'
});
</script>

<style scoped lang="less"></style>
